package com.zt.english.network.api
import com.zt.english.bean.TextTranslateBean
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import kotlin.collections.HashMap
/**
 * 有道文本API
 */
interface TranslateAPI {
    /**
     * 文本翻译
     * 表单提交
     */
    @FormUrlEncoded
    @POST("api/")
    suspend fun transleteText(@FieldMap params:HashMap<String,String>): TextTranslateBean
}